<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <input type="text" v-model="text">
    <ul v-if="text===data">
        <li v-for="item in datalist">
            {{item}}
        </li>
    </ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            data: "excellent student",
            text: "",
            datalist: ["student1","student2","student3"]
        },
        methods: {
        }
    })
</script>
</body>
</html>